import _ from "lodash";

export const setDomFontsize = () => {
  let width = document.documentElement.clientWidth || document.body.clientWidth;
  let fontsize = (width <= 200 ? 1200 : width) / 100 + "px";
  (document.getElementsByTagName('html')[0].style)['font-size'] = fontsize
};

window.addEventListener('resize',setDomFontsize)